package com.zhixi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName STUDENT
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "STUDENT")
public class Student implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;
    /**
     * 姓名
     */
    @TableField(value = "NAME")
    private String name;
    /**
     * 年龄
     */
    @TableField(value = "AGE")
    private Integer age;
    /**
     * 性别
     */
    @TableField(value = "SEX")
    private String sex;
    /**
     * 电话号码
     */
    @TableField(value = "TEL")
    private Long tel;
    /**
     * 电子邮箱
     */
    @TableField(value = "EMAIL")
    private String email;
    /**
     * 生日
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "BIRTHDAY")
    private Date birthday;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "CREATE_TIME")
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;
    /**
     * 是否删除(0-未删除,1已删除)
     */
    @TableField(value = "IS_DELETED")
    private Long isDeleted;
}